﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcSite.Models;

namespace MvcSite.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            GestoreBase.Url = Url;
            GestoreBase.Server = Server;
            ViewData["Message"] = "Palestra ";
            ViewData["LastNotice"] = GestoreNotizie.LastNotice();
            return View();
        }

        public ActionResult HiThere(string id)
        {
            ViewData["Name"] = id;
            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult DoveTrovarci()
        {
            return View();
        }

    }
}
